package cn.dceast.algorithm.dao;

import cn.dceast.algorithm.model.EyeAiLibrary;
import cn.dceast.algorithm.model.TsData;
import cn.dceast.common.generator.MyMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
@Mapper
public interface EyeAiLibraryMapper extends MyMapper<EyeAiLibrary> {

    List<EyeAiLibrary> getAlgorithms(Map<String,Object> args);
    List<EyeAiLibrary> getAlgorithmsIn(String[] id);

    /**
     * 获取模型输入项
     * @param ModelId
     * @return
     */
    List<String> getModelInputCol(String ModelId);
    Map<String,String> getTSData(String tableName);
    List<Map<String,Object>> getAllInputCol(Map<String,Object> args);//获取所有原始输入项
    List<Map<String,Object>> getInputData(String sql);//获取输入项数据
    List<Map<String,Object>> getAlgorithmType();//获取算法类型
    Map<String,Object> getAlgorithmArgs(String aiId);//获取算法类型
    TsData tSDataCol(Map<String,Object> args);
    void creatResTable(Map<String,Object> args);
    int insertIntoRes(Map<String,Object> args);
    int updataModelUploadCloum(Map<String,Object> args);
    int doSetAlgorithmArgs(Map<String,Object> args);
    int updataSetAlgorithmArgs(Map<String,Object> args);
    Map<String,Object> getAiArgmap(Map<String,Object> args);
}